BMI\Plugin\BMI_Ajax D

Total Complexity 565
Dependencies 17
Dependents 1
Total lines 2,333
Lines of code 1,703
Logical lines of code 1,404
Comment lines 161
Methods 43
Properties 0

Methods 43

Method Rating Maintainability Complexity Lines of code
parseFilesForBackup()
D
24
55 128
restoreBackup()
D
21
52 168
prepareAndMakeBackup()
D
24
46 138
saveOtherOptions()
D
30 38 98
saveFilesConfig()
D
29 36 113
__construct()
D
35 33 73
scanFilesForBackup()
D
33 32 86
createBackup()
C
36 32 68
handleQuickMigration()
C
29 27 114
calculateCron()
C
33 26 91
migrationExceptionHandler()
B
36 21 68
backupErrorHandler()
B
40 19 52
forceRestoreToStop()
B
42 19 48
forceBackupToStop()
B
43 17 43
saveStorageConfig()
A
43 13 45
checkIfPHPCliExist()
A
48 9 31
rrmdir()
A
55 9 19
saveStorageTypeConfig()
A
47 8 32
isMigrationLocked()
S
53 7 19
resetLatestLogs()
S
51 6 24
downloadFile()
S
47 5 36
removeBackupFile()
S
54 6 19
dirSize()
S
55 6 18
sendTestMail()
S
59 5 13
isRunningBackup()
S
60 5 11
toggleBackupLock()
S
57 4 15
makeBackupName()
S
48 2 33
getDynamicNames()
S
57 3 17
siteURL()
S
69 4 5
stopBackup()
S
63 3 10
revertUnameProcess()
S
64 3 9
fixUnameFunction()
S
61 2 11
resetConfiguration()
S
70 2 6
handleChunkUpload()
S
80 1 3
getBackupsList()
S
69 1 6
continueRestoreProcess()
S
91 1 2
revertLitespeed()
S
76 1 4
fixLitespeed()
S
76 1 4
getSiteData()
S
69 1 6
dismissErrorNotice()
S
81 1 3
backupExceptionHandler()
S
70 1 6
migrationErrorHandler()
S
70 1 6
debugging()
S
91 1 2